API Browser

Method

WithContext

func WithContext<T, E>(message: string) -> Result<T, ContextError<E>> where E: IError

Declaring type: ResultErrorContextExtensions<T, E>
Namespace: System
Assembly: Raven.Core.dll
Source file: Result.rvn

Extension from ResultErrorContextExtensions<T, E>.WithContext

Wraps only the error channel with operation context. The original typed error is preserved as the contextual error's cause.

Parameters

Name Type Description
self Result<T, E>
message String

Return value

Result<T, ContextError<E>>